<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="canvas" width="600" height="600"></canvas>
</body>
</html>
<script>
    var canvas = document.getElementById('canvas')
    var ctx = canvas.getContext('2d')

    

    ctx.shadowBlur = 10;
    ctx.shadowColor = 'rgba(0,0,0,1)'
    ctx.shadowOffsetX = 10;
    ctx.shadowOffsetY = 10;

    

    var x = 600
    setInterval(function(){
        ctx.clearRect(0,0,600,600)
        x -= 3
        if (x < -100) {
            x = 600
        }
        ctx.font = "50px 微软雅黑"
        ctx.fillText('mystic', x, 100)
    }, 16)
    
</script>